beginItemDrag: function(source) {
this.emit('item-drag-begin');
+ this._inDrag = true;
},
cancelledItemDrag: function(source) {
endItemDrag: function(source) {
this.emit('item-drag-end');
+ this._inDrag = false;
},
beginWindowDrag: function(source) {
this.emit('window-drag-begin');
+ this._inDrag = true;
},
cancelledWindowDrag: function(source) {
endWindowDrag: function(source) {
this.emit('window-drag-end');
+ this._inDrag = false;
},
// show:
shouldToggleByCornerOrButton: function() {
if (this.animationInProgress)
return false;
+ if (this._inDrag)
+ return false;
if (this._activationTime == 0 || Date.now() / 1000 - this._activationTime > OVERVIEW_ACTIVATION_TIMEOUT)
return true;
return false;